package operations;

import book.Book;
import book.BookLiet;

public class DisplayOperation implements IOperation{
    @Override
    public void work(BookLiet bookLiet) {
        //显示图书
        System.out.println("显示所有的图书！");
        int currentSize = bookLiet.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            Book book = bookLiet.getPos(i);
            System.out.println(book);
        }
    }
}
